# 手机路由文件

from django.contrib import admin
from django.urls import path
from mobile.views import index, member, cart

urlpatterns = [
    # path('admin/', admin.site.urls),
    path('', index.index, name='mobile_index'),

    # 登录/注册
    path('register/', index.register, name='mobile_register'),
    path('do_register/', index.do_register, name='mobile_do_register'),
    path('shop/', index.shop, name='mobile_shop'),
    path('shop/select/', index.select_shop, name='mobile_select_shop'),

    # 移动端的购物车
    path('cart/add/', cart.add, name='mobile_cart_add'),
    path('cart/delete/', cart.delete, name='mobile_cart_delete'),
    path('cart/clear/', cart.clear, name='mobile_cart_clear'),
    path('cart/change/', cart.change, name='mobile_cart_change'),

    # 订单处理
    path('orders/add', index.add_orders, name='mobile_add_orders'),
    path('orders/do_add', index.do_add_orders, name='mobile_do_add_orders'),

    # 会员
    path('member/', member.index, name='mobile_member_index'),
    path('member/orders', member.orders, name='mobile_member_orders'),
    path('member/detail', member.detail, name='mobile_member_detail'),
    path('member/logout', member.logout, name='mobile_member_logout'),

    # 密码
    path('member/set_password/', member.set_password, name='mobile_set_password'),
    path('member/do_set_password/', member.do_set_password, name='mobile_do_set_password'),

    path('member/information/', member.information, name='mobile_information'),
    path('member/do_information/', member.do_information, name='mobile_do_information'),

]
